package com.moorwind.chartservice.data
{
	import flash.net.URLVariables;
	
	public class ChartVO
	{
		public var userName:String;
		public var userId:String;
		public var userLink:String;
		public var userImage:String;
		public var userLargeImage:String;
		public var platform:String;
		public var score:Number;
		public var chartId:int;
		public var chartName:String;
		
		public function toString():String
		{
			return "[object GameChart userId=" + userId + "]";
		}
		
		public function toURL():URLVariables
		{
			var param:URLVariables = new URLVariables();
			param.user_name = this.userName;
			param.user_id = this.userId;
			param.user_link = this.userLink;
			param.user_image = this.userImage;
			param.user_large_image = this.userLargeImage;
			param.platform = this.platform;
			param.score = this.score;
			param.chart_id = this.chartId;
			param.chart_name = this.chartName;
			return param;
		}
	}
}